package cn.tutu.blockchain.sysuser.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cn.tutu.blockchain.base.BaseDao;
import cn.tutu.blockchain.sysuser.entity.SysUser;

@Mapper
public interface SysUserDao extends BaseDao<SysUser> {

	SysUser findByPhone(String phone);

	void updateLoginStatus(SysUser sysuser);

	void updatePwd(SysUser sysuser);

	void updatePwdByPhone(SysUser sysuser);

	void deleteByPhone(String phone);

	void updateEthIdByPhone(@Param("phone") String phone, @Param("ethId") String ethId);

	List<SysUser> findByRefPhone(String refPhone);

}
